import Home from "../views/home/home.vue";
import Stock from "../views/stock/stock.vue";

const routes = [
    {
        path: '/',
        name: 'home',
        component: Home,
        children:[
            {
                path: '',
                name: 'welcome',
                component: () => import(/* webpackChunkName: "about" */ '../views/welcome/welcome.vue')
            },
            {
                path: 'cl',
                name: 'cl',
                component: () => import(/* webpackChunkName: "about" */ '../views/cl/cl.vue')
            },
            {
                path: '/stock',
                name: 'stock',
                component: Stock,
                children: [
                    {
                        path: '',
                        name: 'market',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/market/market.vue')
                    },
                    {
                        path: 'bk',
                        name: 'stockBK',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/bk/stock-bk.vue')
                    },
                    {
                        path: 'mark',
                        name: 'mark',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/mark/mark.vue')
                    },
                    {
                        path: 'filter',
                        name: 'filter',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/filter/filter-stock.vue')
                    },
                    {
                        path: 'user',
                        name: 'stockUser',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/user/stock-user.vue')
                    },
                    {
                        path: 'train-record',
                        name: 'stock-train-record',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/train/train-record.vue')
                    },
                    {
                        path: 'train',
                        name: 'stock-train',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/train/train.vue')
                    },
                    {
                        path: 'train-record-detail',
                        name: 'stock-train-record-detail',
                        component: () => import(/* webpackChunkName: "about" */ '../views/stock/train/train-record-detail.vue')
                    },
                ]
            },
            {
                path: '/task',
                name: 'task',
                component: () => import(/* webpackChunkName: "about" */ '../views/task/task.vue')
            },
            {
                path: '/futures',
                name: 'futures',
                component: () => import(/* webpackChunkName: "about" */ '../views/futures/futures.vue'),
                children: [
                    {
                        path: '',
                        name: 'futuresAll',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/dir/futures.vue')
                    },
                    {
                        path: 'variety',
                        name: 'variety',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/variety/variety.vue')
                    },
                    {
                        path: 'exchange',
                        name: 'exchange',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/exchange/exchange.vue')
                    },
                    {
                        path: 'transaction-record',
                        name: 'transaction-record',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/transaction/transaction-record.vue')
                    },

                    {
                        path: 'train-record',
                        name: 'train-record',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/futures-train/train-record.vue')
                    },
                    {
                        path: 'train',
                        name: 'train',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/futures-train/train.vue')
                    },
                    {
                        path: 'train-record-detail',
                        name: 'train-record-detail',
                        component: () => import(/* webpackChunkName: "about" */ '../views/futures/futures-train/train-record-detail.vue')
                    }
                ]
            }
        ]
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/login.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('../views/register.vue')
    },
    {
        path: '/stock-detail',
        name: 'stock-detail',
        component: () => import(/* webpackChunkName: "about" */ '../components/stock-detail.vue')
    }
]

export default routes
